package com.neuedu.his.controller;

import com.neuedu.his.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class UserController {

    @Autowired
    IUserService userService;
    /**
     * http://127.0.0.1/hi
     * @return
     */
    @GetMapping("/hi")
    List hi(){

        return userService.list();
    }

}
